from markdown import markdown
from flask import Blueprint, jsonify

bp = Blueprint('readme', __name__)

@bp.route('/')
def readme():
    with open('README.md', 'r', encoding='utf-8') as f:
        readme_data = f.read()
    return jsonify({'message': markdown(readme_data, extensions=['tables'])})